From: Carlos Garnacho Date: Fri, 18 Dec 2020 14:11:34 +0000 (+0100) Subject: messageTray: Drop hack to keep track of X11 X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~616^2^2~344 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=863ba7667538dd32082037d51e574a14c333d7b9;p=gnome-shell.git messageTray: Drop hack to keep track of X11 This is here to cater for lost events while the pointer wanders into untracked shell UI (thus not part of the input region under X11). Let mutter handle this situation instead. Part-of: --- diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index 4a2d64e17..ae7f2ca2a 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -842,17 +842,6 @@ var MessageTray = GObject.registerClass({ this._onStatusChanged(status); }); - global.stage.connect('enter-event', (a, ev) => { - // HACK: St uses ClutterInputDevice for hover tracking, which - // misses relevant X11 events when untracked actors are - // involved (read: the notification banner in normal mode), - // so fix up Clutter's view of the pointer position in - // that case. - let related = ev.get_related(); - if (!related || this.contains(related)) - global.sync_pointer(); - }); - let constraint = new Layout.MonitorConstraint({ primary: true }); Main.layoutManager.panelBox.bind_property('visible', constraint, 'work-area',